#include <iostream>
#include <sstream>
#include <string>
using namespace std;

int main() {

	string str;
	getline(cin,str);
	stringstream ss(str);
	string sTmp;
	string sRet;
	while(ss>>sTmp){
		if(sRet.empty()){
			sRet=sTmp;
		}
		else{
			sRet=sTmp+' '+sRet;
		}
	}
	cout<<sRet;
	
	return 0;
}
